<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="format-detection" content="telephone=no" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
	<meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>阅读量</title>
    <link rel="stylesheet" href="../mui/css/mui.min.css" type="text/css" />
    <link rel="stylesheet" href="../css/base.css" type="text/css" />
    <link rel="stylesheet" href="../css/style.css" type="text/css" />
</head>

<body>
<header class="mui-bar mui-bar-nav">
	<a class="mui-action-back"><i class="icon icon-back"></i></a>
	<h1 class="mui-title">阅读量</h1>
</header>
<div class="mui-content pb15">
	<div class="super-my">
    	<div class="ptb15">
            <p>我的用户阅读量</p>
            <h4><i class="swap-val">120</i></h4>
        </div>
    </div>
    <div class="mt10">
    	<ul class="swap-list">
        	<li class="curr">
            	<div class="swap-hold"><label class="swap-bar" data-val="120"></label><i class="swap-num">120</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="5"></label><i class="swap-num">5</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="180"></label><i class="swap-num">180</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="120"></label><i class="swap-num">120</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="0"></label><i class="swap-num">0</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="137"></label><i class="swap-num">137</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="0"></label><i class="swap-num">0</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="0"></label><i class="swap-num">0</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="1"></label><i class="swap-num">1</i></div>
                <div class="swap-date">12-05</div>
            </li>
        	<li>
            	<div class="swap-hold"><label class="swap-bar" data-val="0"></label><i class="swap-num">0</i></div>
                <div class="swap-date">12-05</div>
            </li>
        </ul>
        <div class="plr15 c-t-center c-999">仅显示最近10条数据</div>
    </div>
</div>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../mui/js/mui.min.js"></script>
<script type="text/javascript" src="../js/base.js"></script>
<script type="text/javascript">
var max = 200;
$('.swap-bar').each(function() {
	var hg = $(this).attr('data-val')/max;
    $(this).width(toPercent(hg));
});
function toPercent(point){
    var str=Number(point*100).toFixed(1);
    str+='%';
    return str;
}
$('.mui-content').on('click','.swap-list li',function(){
	$(this).addClass('curr').siblings().removeClass('curr');
	var val = $(this).find('.swap-bar').attr('data-val');
	$('.swap-val').html(val);
});
</script>
</body>
</html>